/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aiti.c1202m.service;

import com.aiti.c1202m.core.domain.AnimalBean;
import com.aiti.c1202m.dao.AnimalBeanDAO;
import com.aiti.c1202m.dao.IfAnimalBeanDAO;
import com.aiti.core.c1202m.logger.trace.LogUtil;

/**
 *
 * @author ThinhNV2
 */
public class AnimalBeanService implements IfAnimalBeanService {

    @Override
    public void insert(AnimalBean bean) {
        LogUtil.writeLog(AnimalBean.class.getName(), "Service start", LogUtil.INF_LOG);
        
        IfAnimalBeanDAO beanDAO = new AnimalBeanDAO();
        beanDAO.insert(bean);
        LogUtil.writeLog(AnimalBean.class.getName(), "Service end", LogUtil.INF_LOG);              
    }
    
}
